<?php

namespace wechat\Controller;

use Common\Lib\Weixin\Callbackapi;
use Think\Controller;

class ApiController extends Controller
{
    public function index()
    {
        $api = new Callbackapi();

        $api->valid();
        $api->checkSignature() or die('error');
        $msg = $api->responseMsg();
        exit($msg);
    }
}